modal trigger bugfix