fixed fnmatch bug