Fix dim. Looking by error on generate cube.