Fixed logic, which broke old visualizer app.