Fixed argument bug in fromRule().