Fix bug with params not recognized