Fix incorrect macro name

fixes #6559