Fixed the return command

The history was polled from the wrong end of the list causing any entry added to be instantly removed after the limit was reached.