fixed grayscale issue