Fix Gui and script startup order

Fix physics collisions for sleeping objects