Flicker fix

was calling end frame twice causing some bad flicker