Fixed integer division in ConnectionRule