fix post-autocompletion bug