More bug fixes to generated sheet read.