solve some front end bug