tools: fixes "500 Error" bug in visualise tools

* (closes #657)