fixed null ref error from playerscript