MAX(xthickness, xthickness) makes no sense