Fix abuse of end() to pass a variable