remove obsoleted flags