fixed BOM bug