Fixed implementation of unregisterPlayerInstance