fixed handling of empty index attribute