Fixed gradient and color copy
Fixed code generator