Hotfix for typo

Can you guess where I copied the function template from...