Well, to me it seems you should dig for your problem in your code. But optimizations can be turned off in Options dialog under Compiler tab.