Garmin Swim 2 didn’t record swimming distance in pool

I tried resetting the Pool Swim a couple of times and even resetting my phone but each time it only recorded the time, not the distance. 

How do I avoid this in my next swimming session?