bug fix in the example for the first page load