Fixing undefined parameter problem.