Bug fix: allow negative numbers