Fix bug when unbinding multiple listeners