fix process mode bug