Why? Is removing the listener from window, isn't it?