Fix bug in modals where Thimble would open a new tab