bug fix in setTarget null if no child is selected