Fixed bug with removing of once event listeners