Fix typo that deleted pages on edit.