Fix all_versions check