Exports correctly to pdf now