Fixed file skipping check