Fixed the instance class index bug. Everything will be ok now.