fixed modal hide error