Fix for cypress modal