fix red screen.