Fixed reference to dataframe