Fixed "appending empty data frame" -bug