Fixed some issues in SugarCRM connector