fix in Z plots macro