Fixing numbers being out of order