Fixed problems with categories in sessions.