fixed some angular di bugs