assigned flag bug