fix brick index fetch from custom palette