Fix to int for flag