Fixed warnings in physics.