fix bugs about modify and add