fixed a package error on the color type