Invalid session error fix attempt