Fixed glitchy fade in/out for the first frame.