Fixed server: restore env `ENB_MAGIC_MODE` after make
Fixed middleware: add `magicMode` option