settle some error