Write object to the file is fixed.