resolve integer range error