fix field error in pages write API