fix references for messages paging