corrected bug in session library