Fix bug when save empty fields