Fixed bad math in vector rotations