fix 2 serious bugs in change parameters