fixed bug with undefined variable for $additional_locations