fixed minor bug in take and drop commands