fix regression bug in visualization validation