table output missing rows fix