Fixed defect where pages would be duplicated when plugin was reactivated