Fix rule repository and profile creation