Fix broken tab colours. Resolves #247.