fix similar_row_from_{id,datum} not working