philmetz 0 Light Poster

Ok see the attachments(note i have converted the images to gif as pgm is not allowed to be uploaded)

I am trying to do Connected Components Labeling in an image (Gaus.gif) and output the result (smallOut.gif)

It almost works except for one little part in the smallOut.gif. The first object from the left the top left of that object you will notice a dfferent color. Not sure why its doing that.
The link here http://www.sendspace.com/file/yc0h9x has all the files used to run the program, just run make and ./process

Could someone help please?