fix some front_end bug