Fix previous element selection.
Removes console.log calls.