fixing an unassigning issue bug