Fixing rule locations