Please correct the grammar issues in the following text:
The problem of male erectile dysfunction was solved by the innovative development of Viagra, though it was a 'coincidence' the compound Sildenafil causes penile erection.
The problem of male erectile dysfunction was solved by the innovative development of Viagra, though it was a 'coincidence' that the compound Sildenafil causes a penile erection.