Thanks a lot! Yeah, that was because the sidebar gets printed at the beginning of each page (when the values are still what they were), so it only updates when you change the page again. But I know some solutions for that now, so it's great learning experience. :)