Remove erroneous parameter and get rid of warnings.