modify the error for merging