fixed nullref in playerscript