fix problem of preview window not close automatically in YouCompleteMe