Fixed handling of background colours.