Black screen fix

black screen wasn't properly fixed in certain situation.
Now it's fixed!
Merge pull request #7 from Lopuska/patch-9

Black screen fix