fixed front-end bug