Fix physics bug