fixed modal behaviour