Fixed a negative number bug