a bug fix for indexed.