Break long chains after the first call
Add missing entity assignment in edit rule function