correct wrong error handling in 1D smooth