Warning fix for dynamic rule