Fixed a bug in unit conversion for sequences