Error in calculating Arii ANNED 3 Component decomposition?

It seems that there is a bug in the source code [arii_anned_3components_decomposition.c]