fix sdf thread safe problem