Bugfix transformparams thx to Piotr Orłowski