fixed 'toOrigin' option for large coordinates