Fix for cubes errors (Hopefully)