Fixed a bug in toHuman method: values of 0 would cause infinite loop