xl: Make sure the width is valid