Fixing undefined variable $dataList

Fixing a few instances of `$dataList` being undefined.