fix ring problem