Handling the nested compound plug case