Fix for < 3 dimensions