Fix resource as color problem