fixed bug: loop all locations in server