Fix: Correctly assign the right local location after module compiling.