fix a bug on the variable edit form