fix #866; generic static params