protect: fix bug when create-protecting pages