fixed conversion of NSString to NSNumber