change plot.type to avoid eval