fixed modal warning bug