fixing angular bug