rotation problem - freezes at 90/270 degrees

Hi!
My spaceship has a script including this line of code:

function FixedUpdate() {
	...
	transform.Rotate(Vector3.right,Input.GetAxis("Vertical")*Time.deltaTime*-rotSpeed);
	...
}

The problem is, that whenever the ship’s x-axis rotation reaches 90 or 270 (facing upwards or downwards) it snaps to that value and I can’t rotate it anymore. The y-axis rotation works fine though. What’s wrong with it? Thanks for the help.

It doesn’t look as though that line of code is responsible for the problem. Can you post the rest of the script?