fix possible black screen