fix bug in __init__ (import session)