fixed bug in destructive select