Fixing write excel capability