Fixing map and file persistance problem on server restarts