fixed bug in visualization_format