Fixed issue with skipping files