User session bugfix