bigdata fix - last records id have to be converted to integer