fix resetting of color