Changed to correct use of \dim