fix some sim detection errors