fix show error on front end