fixed logic of setting address boolean