remove not working in only one case