fixes parsing of implied rules