Fixed pic count bug after remote debugging in Visual Studio