Fixes #200
[FIX] A problem with targeting in single player (Effected XGUI. Thanks, bender180).