bug fix in getParameters