Number which start with 0 are interpreted in octal. 

We forced them to decimal with $(( 10#$x ))