Fixed index error causing bad scales