fixed register params issue