FIX: prevent executing the $apply when another is in progress