This is the only code I'm not thrilled about. So far it's the most reasonable workaround I have found though. Hopefully it's a bug Apple can resolve.