Choosing option Repair from Avast maintenance in Programs and Features -> Avast -> Change, results with the loss of all custom firewall application rules. If this is expected behavior, then a message should show up with proper warning, allowing a user to cancel repair process, and review the settings before resuming it.