updated fix for catching dimensionless units