fixed focus on ace editor $apply already in progress error