fix passing plot parameters