fixed location bug in GET endpoint