Fixed the negative number problem