fix box value repopulate after error