memdbg fix for cprepair