Fix bug: correctly clean player object