preventing error on typing/saving mixup