fix hide modal errors