problem with remove flags

Signed-off-by: Gordon B. Isnor <gordonbisnor@gmail.com>