Fixed logic, which broke old visualizer app.

fixed old app