Minor change in as.data.frame