Fixed bug not allowing write of Excel