Previously the session_id incrementation was done after creating filters, giving the filters a constant zero value for session_id. Now the incrementation happens before filter creation.