Fix set attributes in Session