fixes dataframe indexing and stringsasfactors errors