Fixed event listener not working