Script is broken!

Wierd bug with code closing.