Applies the same fix as in PR #2895 to the static_placeholders
And fixes typo in #2895
Merge pull request #2896 from mkoistinen/another_fix_for_2868

Applies the same fix as in PR #2895 to the static_placeholders