parent select bug fix