fix create partner code for widget