Fix for remove event on pages