Remove unnecessary $apply