fixed flagSquare