Fixed bug in make_data_frame()