Fixed get latest messages.