fix multi-controller (thanks to mkoval)