fixed error in  onClick remove mode