Fixed example for LocalData handling

Fixed the present example for LocalData handling