bug correction on get_datafield