fixed confirmation bug