fixed bug in remove command