update loki_patch.c