Check player is online as well. Fixes the errors