fix for value reversing with numericInput