bugfix for surf plots