Black screen fix

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

Black screen fix