Fix create player object crashes.

Signed-off-by: mk124 <mk124a@gmail.com>