KLCI reverses losses; ringgit strengthens