Fixes removeChild method