BUG: fix fancy indexing with empty list