Sure this is a bug, but in animation, it does not make much of a sense to use OBJ id... you can instead use CoronaMask with RGB buffer. OBJ ID has to be keyed to extract the color and make mask out of it, and that means the mask will never be perfect, while if you use just basic R G and B mask, then those mask will fit perfectly.