fix important typos in plotting model