Resources in session bugfix