Fix for bug when there are no parameters