fix the black screen problem