fixed bug in input when user change values