fix bug in shared parameters #484