No, you're doing it right. Your only problem is luck - when you breed using a female Pokemon with a Hidden Ability, you have a chance to pass that Hidden Ability along. But the key word is 'chance' - it's not 100%, and there's no way to make it so.