Corrected bug in printParameters()