fix a crash on combination of --enable-source-map and --release