Fix clean button functionality.