Removes wrong flags
Re-adds flags