Wrong timing broadcasting 'completed' event

I use ui-router and for each resolve he triggers the loading bar and I received 3~5 complete messages.
I spotted this recursion after broadcasting the event so it is a simple change.

Docs: cfpLoadingBar:completed triggered once when the all XHR requests have returned (either successfully or not)