Fix second issue of https://github.com/teawater/kgtp/issues/6
This issue is because function doesn't put the memory value to right address.