fix error handler util undefined index
fix core session offsetSet for use without data pass by ref