provides fix for session when no record found