fixed bug related to management of engine listeners