Fixed file detection.