Fix front end bugs.