Fix updating of versions if only the case changed