* fixed an error of function 'setModal'.