angular bug fixing