Fixed player not spawn undefined entity bug.