magically fixed modal bug