fix some unit errors on input