fixed double rule bug