Fixed removal of negative numbers

that was a silly mistake