UI: fix failed label
fix some codacy issues