Corrected a bug with setting the target via http