You can cancel a like heart only within a limited time span.
Maybe you are trying to unlike a too old like.