[AN DOLLE] Memory management fixes. Changed badge gradient.