Fixed front-end bugs.