Cube redefinition bug corrected