Fixed error on player quit