Fix some rule errors