fix input of blank fields