fix minimization in rotated coordinates