Fixed build issues if parameters undefined.