bug fix..missing indices