fix player null freeze