fixed None unit in pformat()