fix syncProcessLocal and assign to session