Fix condition for charging color.