cube code fix