fix repace button bug