fix $apply issue again