bug: index has negtive ones