fixing negative number bug
Merge pull request #1 from adamhaapala/master

Fixed the negative number bug