fix a method cache bug in static parameters