Corrected the last bug in names

It was actually the wrong variable that was called with the dropwhile