fix color method error