fixing bug when overwriting default-parameters