Fixed quagga bugs.