What is the version of the following sentence with correct punctuation?

When being attacked by several bees or wasps at the same time it is often wiser to keep absolutely still than to try to wawe them away or run away from them
When being attacked by several bees or wasps at the same time, it is often wiser to keep absolutely still than to try to wawe them away or run away from them.