remove a useless flag set