Fixed not replaced %location% variable