Fixed a bug with loading the rules