Fix for blank screen refresh