fix BOM bug