fixes in xls format

I couldn't import using excel. These changes fixed it.

I haven't tested its affect on other formats.