fixed misuses of NSDebugLog