fix some angular errors