Fix bug with shared pages