fix green flickers and flip