Fix problem with destructuring dataframes