fixes for generated constraint rules