fix params bug