last child fix