Store the clicked value correctly.