I can not see the reason of the problem from your script.

I suggest that you post this question in the beginners forum. Other users will help you examine your levels and find the difference. The developers forum is only meant as a last resort, for advanced questions that can't be answered in any other forum section.