Update loki_patch.c