Fixed parseInt for IOS