Fixed bug when the alternate location is not defined