fix the ui sample