Error for .on(string, undefined)