fix bug of enablepeer.