Often in the series, it is seen that able Haki users can use it to break their chains. Also, Ace was a devil fruit user, and he was weakened. Another theory is that Ace never mastered that application of Haki, which is very plausible.