fix bug that was introduced when retrieveNewestMessages was added.

this method should be modified or combined with getMoreMessages(). I am not sure there should be two methods.