Finally bug with rotation is fixed.