I had some issues in the past similar to this. Try putting your main001: label under your DEFINEs so it essentially reboots each time it goes there.