Fixed swift error due to XCode update.