fix ring wrap when determining available entries