Fix wrong condition in Chain#next