The waves nearly capsized the boat