fixes visualize_appearance_model