fix log messages, sessions number guard