Fixed issue #12327

Closes #12327