Fixed bug with incorrect number of parameters.