fixed i_am_master_ bug