fix squarelayout