Remove extra flags