fixed small bug with matchChild