Fixed a bug in the fixNumber() method.