File write fixed.