Fixed bug in visualisation