Fixed cube computing bug.