fix swift bug in new XCode Beta