Fixed stack overflow with getParameters()