Fix sample rule construction.