fix front-end errors