Minor impreovements in coordinates conversion