Fixed file matching bug