[cubie] bugfixes