fixed the parameters which got reset for some reason