fixed bug in drop command