Fix bug when no more parameters are found.