fixed error with units