Fixed size errors for byte and short types in indexing