fix($location): avoid repetition