Used close path command (Z) to finish square instead of drawing final line.