fix: nested $apply bug