handling null default location