Debug the visualization function

20140701