A method of operating a wind turbine, wherein said wind turbine includes a tower and a nacelle positioned on top of the tower, a yaw system for rotating the nacelle with respect to the tower and one or more cables extending from the nacelle to the tower, the method comprising the steps of: establishing a neutral point of the nacelle wherein the cables are substantially not twisted; defining a reference point; rotating the nacelle to substantially align with the wind direction; and when the cables reach an untwist condition in either a first or a second rotational direction; stopping the wind turbine; rotating the nacelle towards the reference point, wherein the reference point is different from the neutral point, and further comprises performing an analysis of the rotation of the nacelle and / or a wind direction and redefining the reference point based on said analysis and a long untwist condition is defined as the nacelle reaching a maximum rotation in either the first rotational or the second rotational direction, and characterized in that a short untwist condition is defined as the nacelle reaching a predetermined degree of rotation for short untwist in either the first rotational or the second rotational direction and a wind velocity or an electrical power being generated being below a predefined threshold, and the method further comprises redefining the short untwist condition, wherein redefining the short untwist condition comprises the nacelle reaching a certain degree of rotation for short untwist in either the first or the second rotational direction and maintaining the certain degree of rotation for short untwist during a predetermined period of time and redefining the short untwist condition by moving away the predetermined degree of rotation defined for short untwist from the current predetermined degree of rotation for short untwist. establishing a neutral point of the nacelle wherein the cables are substantially not twisted; defining a reference point; rotating the nacelle to substantially align with the wind direction; and when the cables reach an untwist condition in either a first or a second rotational direction; stopping the wind turbine; rotating the nacelle towards the reference point, wherein the reference point is different from the neutral point, and further comprises performing an analysis of the rotation of the nacelle and / or a wind direction and redefining the reference point based on said analysis and a long untwist condition is defined as the nacelle reaching a maximum rotation in either the first rotational or the second rotational direction, and characterized in that a short untwist condition is defined as the nacelle reaching a predetermined degree of rotation for short untwist in either the first rotational or the second rotational direction and a wind velocity or an electrical power being generated being below a predefined threshold, and the method further comprises redefining the short untwist condition, wherein redefining the short untwist condition comprises the nacelle reaching a certain degree of rotation for short untwist in either the first or the second rotational direction and maintaining the certain degree of rotation for short untwist during a predetermined period of time and redefining the short untwist condition by moving away the predetermined degree of rotation defined for short untwist from the current predetermined degree of rotation for short untwist.