fix child selection bug