Bugfix "add resource to session"