fix physics bug