Alignment bug

After undocking my ship automatically changes direction to up, also if i align to something after 1 sec is breaks and again automatically aligns up, any suggestions

Fixed itself after computer restart