fixing the functionality of changing values when the user press dot