Fixed session.next() error