fix GM restart bug, gravity bug