Bugfix for cubes on mysql.