Fix "runtime error: shift exponent 32 is too large for 32-bit type 'int'" error