Dave, There's nothing bad with the include located at the end. Include are just section of code, you can place them where you want. Now we need to know what's in thos .inc files though... From memory LData are just lookup tables, it may smells of some page boundary stuff... or not.
That is why I said "might be the problem" Might be a section that should be near the beginning before something else.