Fix flickering because of timing set incorrectly.