Custom spot color export to PDF problems (again)

Just bumped into this (once again). If you create a custom spot swatch in your document palette by changing its mode from process to spot it won't export as spot unless you change it's name first, then change property to spot. If you do it other way around it won't work. It was a bug in previous versions that i believe was resolved in 2018 or 2017 and now it's back again. I've also noticed that if you create color style swatch with pantone it will export named after swatch name (for example „ColorStyle1”) instead of pantone name.