Fixed issue with validating allowed flags