Fix for small error in utils with the recent dist detection change