Some physics bug fixes