Fix type error

The type mismatch doesn't compile with iOS 7 SDK