Large Enemy Movement

I’m creating a 2D platformer in which the player has to defeat large enemies. While I was able to make an enemy the size of one square move left and right without any issue, I’m having trouble doing the same with an enemy larger than one square, as it will immediately turn around after a short distance of movement. Any way I can fix this?

Never mind, just fixed it!