check param bug fix