fix #1474, incorrectly replacing method with different static parameters