bug fixed in remove