fixing loss of colour after setting the title to default