fix empty table printing