Bug fixing

Fixed a bug when an empty list of parameters is passed.