fix compile_top_labels