fixing field value number to_i issue