fixed xcode bug closes #15