crash problem

screen sometimes will be null here.
Merge pull request #2 from TerrySunTW/patch-2

crash problem