Fixes a angular bug