fix($dialog): fix $apply in progres on $location change