On the Transition between Cholesteric and Nematic Phases in Magnetic Field