Fix some silent rules in diameter and wx