Fix of .end() de-referencing