fix small js bug for incomplete rows.