fix query for label_ref
fix displaying status