little fix in "on" method

added .active() when the 'f' argument isn't passed to the function