fixed memory leaks for book colours