Make sure data is written to profiles file