fixing the delete selected bug; fixes #3