fixed bug with writing to local store