Minor bug fix when indexing histogram tile