fix case where rule might not exist anymore