fixing error #13, data frame was initialized but the number of rows is 0