fix confirm not works