fix empty key on save