*fixed: bug on session ref count