fix #4525: number format exception when parsing coordinates