Save datalistener in memory
Merge pull request #3132 from saebekassebil/issue-3130

Fix issue #3130 by changing a wrong reference of scope