fix a bug, may crash at making xlsx.