bugfix modal windows