fix for writedlm with empty columns