Camera Detach from component not working properly in Take Recorder

I am detaching the camera while Take Recorder is Recording, but somehow after detaching the camera does not stay where it is in the world, instead, it teleports to a random place and still follows the player.