Fixed null crash when clicking outside world