Fix for checking rules