Fix status command when using flags