fixed minor two bugs in param space code