fixed array out of bounds  / invalid memory access bug on sample meta data