fixing mistake, hasVersion was always true