fixed angular code