fixed some errors (with Kyrill) in the PlayerManager.