Fixing random black screen.