fix procedure sql
merge