Fixed rule bug