Fix for leash detection on 1.5.2