bugfix scaling/descaling in repair; set parameter correctly