fix bug after remote debuging