Need Help

I need help fixing the enemy point. When he rotates to ‘point at’ my player he turns upside down. If someone could explain I would be thankful.
http://www.flowlab.io/game/play/733235

His forward is set to the right side. If he’s pointing at the player while he’s on the left side, then the enemy would have to rotate 180 degrees, which would end up with him being upside down.