fixed session error. This error occurs when a session is about to start.