workaround for edge case in jw-distance: needs prettier fix