fixed printing of trailing tabs