No I mean that it's not possible that they work seperately but not together.

Have you tried F8-ing through the code?
Have you looked at the screen while doing that to see if anything has happened?