fixed prepareRule execution