Fix raw log insertion