bug when empty location (solved)