Should fix very strange flickering bug.