The object detection with SExtractor is performed without using the information provided by the data quality flags and the error arrays. This might in some cases lead to the detection of spurious objects. In order to identify such spurious detections, the pixels where the object lies are compared to the quality flag array. If the ratio of bad pixels to the total number of pixels used by the object is above a user-defined threshold, the object is considered as spurious and not considered any further. In addition, the total flux within any object is compared to the quadratic sum of the error estimates for the individual pixels within the object. Again, a user supplied threshold for the significance is used to remove spurious or weak objects.