BarService added: fix the "no session for current thread error"