bugfix: invalid memory access in escape peak ratios calculation