fix bug that was reintroduced where annotation state is not preserved when page is changed