select params bug fix