Fix lifeFile writting bug