Fix cube creation.

See github/octocloud#93.