fixed error when passing an unknown delivery method