add bugfix from https://github.com/bartvandendriessche/PaperFold-for-iOS/commit/6d0cf9e4af50f101a25e5dc9ea4e790bacd3fe07#commitcomment-2523003