bug fix front end