fix spawn dim and ground collision bug in ML