fixed a xcode 5 bug