Fixed a bug for color boundary extraction