serendipitously

(adverb)

adverb

1. By serendipity; by blind luck in combination with wisdom; by fortunate accident.