fixed modal button bug