fixed bug of remove