fixed Swift Compile issue