Fixed bug in setInvertParams