fixed remove function of list api