fixed bug on parsing coords if undefined