Remove the locale in the correct way, when the checkbox is unchecked (#11)

This is for issue #11