chain bug correction