fix subtle bug