fixed new/edit rule bug