fixed DbSession class