fix bug with weblog example