fixed parsing of partial rules