bug fix in importDataFromArray