Some fixes to equation priorities.