Fix regression with optional arguments.