Median filter now correctly creating new child