Fixed error in PruneDetections.m