Fix for long type in dataframe