weird bug with unit conversions