fix the prepare view function in field_data_collector module