bugfix for reindexing with empty values