Fix bug where the overlay was covering the text elements