Handling missing parents but still buggy