fix autocorrection bug