fix for null parents