Fixed turn on the screen algorithm