Fix a bug with session name list