add security prepare to fixed transcational bug