Few fixes for buffer overflow and variables step
Fixed read-back of sumpt2in/out