fix for wrong session-handling