fix bugs sub-session