fixed another regression after jQuery migration