Issue #130: Fixed a bug in the remove page function.