Fix a bug in saving paper