little bugfixes to demux rules [ci skip]