Corrected a bug with a missing parameter.