fix for empty locations