Remove some error message by changing return type to iOS7 standards