Fix get location on startup

Signed-off-by: PedroLourenco <PedroLourenco@mejaime-PC.lan>