data frame was a view, had to make a copy. see previous commit.