There was indeed a bug here, and it should be fixed in this release: https://github.com/laurent22/joplin/releases/tag/v1.3.2