fix bug in color merge routine for complex script objects