fix an issue with binding the current page