fix possible white screen