We were expecting a beautiful weather at the beach, but it was so cold and rainy that ___________ getting a suntan, I caught ...

Answer: 
instead of
We were expecting a beautiful weather at the beach, but it was so cold and rainy that ___________ getting a suntan, I caught a cold.