fix error with incorrect flag