fixed modal buug (with js though)