Turned file writing back on. locked environment during planning