fixed convertToPoint method