added a position data check to prevent server crash