Bug fix: Format check for potential files