Corrected check for outdated metadata version