That black cylinder sounds like your charcoal cannister. The hose you mention should go to your intake manifold. It coming loose might be the vacuum leak causing your problem.