fixed nullptr exception in PlayerController