fix origin for squares