Fixed crash when no default values are provided