bug fixed for schema stat visitor