error params bug fixed