fixed ordering issue on recent messages