fixed session filtering