fixed addition error in index