Fixed location button issue.
NOTE: for location to work, Debug > Location must be set to anything but None.