Fixing color copy when using stack function.