fix error in front end