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