AI does the exact same thing in my experience. First try is not right. Nor the second. If you're lucky the third might.
At that point I'd rather look at SO