Corrected bug of sessions