fixed a bug that works physics simulation even if play only