Bug: fixed the number of sessions generated