Fix plot conversion