fix a broken plot