deepcopy pipeline for avoid internal change, and fix some errors bug.