corrected filterExtension bug