fix advertise bug