Fixed bug in coordinates conversion.
wip