fix color reset bug