fix remove bom bug