update patch to entityrules