Fix session error can not initialize