Fix loki_flash