fix warning parameter that does not exist
by @xavierchou