Fixed UInt bug for new version of Swift