Fixed issue caused by pull from master.

Now the locations controller will render the template properly.