fixed bug with repeat property not working on rules