fixed massive memory leak in colour selector