fix the problem with delete modal