fixed modal scope issue