Slight fix to protect against edge case where temp-wrapper might not be the top level primary element