Fix front-end code smell.