Inflation can solve the rotation problem