Loop and twinkle fix

These are the fixes for the editor looping issue. The random schedule shows crash, and a twinkle issue I accidentally created in a previous commit.