session expired bugfix