Add the root after for INSIDE the function so that the event will be triggered more than once.