Fixed an error where non-required an non-default parameters caused a crash