remove unnecessary $apply