Fix incorrect usage of named arguments