Crashed Fixed

On multiple display device it crashes the Xcode...
Merge pull request #1 from hamdullahshah/patch-1

Fixed crash that could occur in some multi-monitor configurations.