fixed modal problem