fix flag overriding

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>