fix for initializing listeners