Fixed $rootScope.initialized not being set before broadcasting "initialize" event