Fixed a minor inconsistency between OS X and iOS implementations