fix switching of linetypes from metric to imperial on unit change