fix loading rules