fixed location variable overwrite bug