fixed a crash with distance ring