Fix total colours count in ctx_clean