Fixed bug in Square Targeting method.