fixed undefined UOM bug