Fixed minor bugs on visualisation