Fix local data to be wrtten without idPrefix. The same fix when it is read in different mthods. Need more testing