Try to fix buildRule()