IM-1333: Fixes 'Numeric value out or range: 1690 BIGINT'