Fix a bug that not processing all sessions