Fixed bug in checking rules when they are re-enabled