fixed modal bug