Update sync_prompt.cc

try to fix #issue 8