Fix session error