fix error parameters, they are not only strings