Fix bug involving dataPath not being set.