fix bug of unable to refresh message urls

Bug lead to resend old messages continuously.